<%@page import="com.ddd.entity.Publisher"%>
<%@page import="com.ddd.service.PublisherService"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%
    Parameters para = new Parameters(request);
    String username = para.getUsername();

    PublisherService service = new PublisherService(request);
    Publisher p = service.loadByName(username);
%>

<html xmlns="http://www.w3.org/1999/html">
    <head>
        <meta http-equiv="Content-Type" content="text/jsp; charset=utf-8" />
        <title>授權合作</title>
        <link href="../style.css" rel="stylesheet" type="text/css" />

        <style type="text/css">
            <!--
            body {
                background-image: url(../images/back-200.gif);
            }
            -->
        </style></head>

    <body>

        <div id="cell">
            <div id="cell2"></div>
            <div id="cell3">
                <div id="cell4"><div  align="center" id="long"  > </div></div>
                <div id="cell5">
                    <div  align="center"> 
                        <%@ include file="../menu.jsp" %>
                    </div>
                </div>
                <div id="cell11">
                    <div id="cell6">
                        <form action="" method="post"  id="froml">
                            <div id="menu">
                                <ul class="subb">
                                    <li><a href="<%=request.getContextPath()%>/FE/authorize_cooperation/authorize_cooperation.jsp" target="_self" class="authorize_cooperation"></a></li>
                                    <li><a href="<%=request.getContextPath()%>/FE/authorize_cooperation/report_back_gold2.jsp" target="_self" class="report_back_gold"></a></li>
                                    <li><a href="<%=request.getContextPath()%>/FE/authorize_cooperation/cooperation_data.jsp" target="_self" class="cooperation_data"></a></li> 
                                </ul>
                            </div>
                        </form>
                    </div>
                    <div id="cell7">
                        <div id="cell8">
                            <div align="left"><img src="../images/cooperation3.png" alt="" width="200" height="70" /></div>
                        </div>
                        <div id="cell9"> 

                            <%if (p != null) {%>
                            <table width="652" height="232" border="0" cellpadding="5" cellspacing="0">
                                <tr class="m08"> 
                                    <td width="150" align="right">單位：</td>
                                    <td align="left" ><%=p.getName()%></td>
                                </tr>
                                <tr class="m08"> 
                                    <td align="right">負責人：</td>
                                    <td align="left" ><%=p.getContactName()%></td>
                                </tr>

                                <tr class="m08">
                                    <td width="150" align="right">E-Mail：</td>
                                    <td align="left" ><%=p.getContactEmail()%></td>
                                </tr>
                                <tr class="m08">
                                    <td width="150" align="right">電話：</td>
                                    <td align="left" ><%=p.getContactPhone()%></td>
                                </tr>
                            </table>
                            <%}else{%>
                                無資料！
                            <%}%>

                        </div>
                    </div>

                </div>

                <div id="cell10">
                    <div align="center" >
                        <p>&nbsp;</p>
                        <p>YOUR JOURNAL資訊    版權所有 © 2011 YOURNAL! Taiwan All Rights Reserved </p>
                    </div></div>

            </div>

            <div id="cell2"></div>

        </div>
    </body>
</html>
